package com.bing.controller.admin;

import com.bing.bean.sys.SysUser;
import com.bing.services.SysUserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Administrator on 2015/6/13.
 */
@Controller
@RequestMapping("perm")
public class PermissionController {

    @Autowired
    private SysUserService sysUserService;

    private Logger logger = LoggerFactory.getLogger(PermissionController.class);


    @RequestMapping("createUser")
    public String createUser(SysUser sysUser){
        sysUserService.createSysUser(sysUser);
        return "sucess";
    }
}
